T=20; n=[8,8,9,8,12,12,10,9,10,10,13,9,8,9,9,8,8,8,10,8]; a=[16,7,15,9,12,8,14,10,10,14,16,15,12,13,8,4,11,13,5,12,14,10,15,9,7,9,13,14,7,11,16,12,10,12,15,7,9,14,8,16,6,11,10,13,4,4,16,14,8,15,12,11,6,9,10,13,7,13,15,4,10,11,7,8,12,14,16,7,4,16,12,13,9,11,8,10,14,8,9,5,15,10,12,13,7,16,13,10,16,7,4,8,11,15,14,12,11,12,14,6,10,15,9,5,8,13,4,16,7,9,10,12,4,7,11,13,16,6,12,7,11,6,14,16,13,15,6,8,13,9,4,15,16,7,12,13,15,8,6,16,10,7,9,14,4,15,9,8,11,13,6,16,12,8,9,7,14,6,16,15,12,6,9,16,15,8,11,14,12,15,4,14,8,6,13,16,11,10,10,9,15,5,13,12,14,16];